#ifndef AGG_SUBSCRIPTION_H
#define AGG_SUBSCRIPTION_H
#include <QString>
#include <QFile>

typedef enum e_FeedEncoding
{
	E_UTF8 = 0,
	E_UNICODE,

	E_FEED_ENCODING_COUNT
};

class FeedSubscription
{
public:
	FeedSubscription();
	~FeedSubscription();

	inline void SetURL(QString _strUrl) { sFeedUrl = _strUrl; };
	inline QString GetUrl() { return sFeedUrl; };
	inline void SetInterval(int _val) { iInterval = _val; };
	inline int GetInterval() { return iInterval; };
	inline void SetName(QString _strName) { sName = _strName; };
	inline QString GetName() { return sName; };
	inline int GetUnreadCount() { return iUnreadCount; };
	inline void SetCacheFileName(QString _strName) { sCacheFile = _strName; };
	inline QString GetCacheFile() { return sCacheFile; };
	inline void SetUser(QString _strUser) { sUser = _strUser; };
	inline QString GetUser () { return sUser; };
	inline void SetPasswd(QString _strPass) { sPasswd = _strPass; };
private:
	QString sFeedUrl;
	int iInterval;
	QString sName;
	e_FeedEncoding eEncoding;
	QString sCacheFile;
	QFile * qCacheFile;
	int iUnreadCount;
	QString sUser;
	QString sPasswd;
};

#endif